package com.hjy.study.studyspringcloudpublic.entity.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by hjy on 2018/6/14.
 */
@Entity
@Table(name = "user")
@ApiModel(value = "用户",description = "user")
public class user implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "ID",required = true)
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "名称",required = true)
    @Column(name = "name")
    private String name;

    @ApiModelProperty(value = "年龄",required = true)
    @Column(name = "age")
    private Integer age;

    @ApiModelProperty(value = "其他",required = true)
    @Column(name = "other")
    private String other;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }
}
